<!DOCTYPE html>
<html>
<head>
    <title></title>
	<#include "/header.html">
</head>
<body>
<style>
    th{
        text-align: center;
    }
</style>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <div class="grid-btn">
            <div style="float: left">
                <input style="width: 120px" type="text" class="form-control" v-model="q.userId" @keyup.enter="query" placeholder="用户ID">
            </div>
            <p style="float: left">&nbsp;</p>
            <div style="float: left">
                <input style="width: 120px" type="text" class="form-control" v-model="q.userName" @keyup.enter="query" placeholder="用户名称">
            </div>
            <p style="float: left">&nbsp;</p>
            <div style="float: left">
                <select style="height: 34px;" id="selectUserGzhList" v-model="q.gzhCode">

                </select>
            </div>
            <p style="float: left">&nbsp;</p>
            <div style="float: left">
                <select style="height: 34px;" id="selectTransStatusList" v-model="q.transStatus">
                    <option value="">全部订单</option>
                    <option value="0">未支付</option>
                    <option value="1">已支付</option>
                    <option value="2">已退款</option>
                </select>
            </div>
            <p style="float: left">&nbsp;</p>
            <a class="btn btn-default" @click="query">查询</a>
			<!--<#if shiro.hasPermission("sys:borderinfo:save")>-->
            <!--<a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>-->
			<!--</#if>-->
			<!--<#if shiro.hasPermission("sys:borderinfo:update")>-->
            <!--<a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>-->
			<!--</#if>-->
			<!--<#if shiro.hasPermission("sys:borderinfo:delete")>-->
            <!--<a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>-->
			<!--</#if>-->
        </div>
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>
    </div>

    <div v-show="!showList" class="panel panel-default">
        <div class="panel-heading">{{title}}</div>
        <form class="form-horizontal">
                    <div class="form-group">
                        <div class="col-sm-2 control-label">买家用户ID</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" readonly="readonly" v-model="bOrderInfo.userId" placeholder="买家用户ID"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-2 control-label">交易总计金额</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" readonly="readonly" v-model="bOrderInfo.totalAmount" placeholder="交易总计金额"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-2 control-label">交易状态</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" readonly="readonly" v-model="bOrderInfo.transStatusText" placeholder="交易状态 0-等待支付 1-已支付 2-已退款"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-2 control-label">第三方交易号</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" readonly="readonly" v-model="bOrderInfo.tradeNo" placeholder="第三方交易号"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-2 control-label">交易说明</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" readonly="readonly" v-model="bOrderInfo.itemName" placeholder="交易说明"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-2 control-label">交易发生时间</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" readonly="readonly" v-model="bOrderInfo.createTime" placeholder="交易发生时间"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-2 control-label">跟进时间</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" readonly="readonly" v-model="bOrderInfo.followTime" placeholder="跟进时间"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-2 control-label">跟进人</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" readonly="readonly" v-model="bOrderInfo.followUserName" placeholder="跟进人"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-2 control-label">备注</div>
                        <div class="col-sm-10">
                            <textarea rows="3" class="form-control" readonly="readonly" v-model="bOrderInfo.remark" placeholder="备注"></textarea>
                        </div>
                    </div>
            <div class="form-group">
                <div class="col-sm-2 control-label"></div>
                <input style="display: none;" type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>

                <input type="button" class="btn btn-warning" @click="reload" value="返回"/>
                &nbsp;&nbsp;&nbsp;&nbsp;<input type="button" id="drawback" class="btn btn-primary" @click="drawback" value="退款"/>
            </div>
        </form>
    </div>
</div>

<script src="${request.contextPath}/statics/js/modules/sys/borderinfo.js?_${.now?long}"></script>
</body>
</html>